<?php

namespace core\lib;
use core\Config;
use Medoo\Medoo;

class Model extends Medoo
{
    public function __construct()
    {
        $option = Config::all('database');
        parent::__construct($option);
//        $database = Config::all('database');
//        try {
//            parent::__construct($database['DB_DSN'], $database['DB_USER'], $database['DB_PASS']);
//        } catch (\PDOException $e){
//            p($e->getMessage());
//        }
    }
}